<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>骰子</title>
  <link rel="stylesheet" href="index.css">
</head>

<body>
  <hr>
  <h1>九宫格方位说明</h1>
  <div style="display: flex; justify-content: space-evenly; padding-bottom: 10px;">
    <div class="nine-box">
      <div>东南</div>
      <div>正南</div>
      <div>西南</div>
      <div>正东</div>
      <div>中宫</div>
      <div>正西</div>
      <div>东北</div>
      <div>正北</div>
      <div>西北</div>
    </div>
  </div>

  <hr>
  <h1>1点的布局示例</h1>
  <div style="display: flex; justify-content: space-evenly;">
    <!-- 东南 -->
    <div class="face-container">
      <h3>东南</h3>
      <div class="1-face">
        <span class="pip"></span>
      </div>
    </div>
    <!-- 正南 -->
    <div class="face-container">
      <h3>正南</h3>
      <div class="1-face" style="justify-content: center;">
        <span class="pip"></span>
      </div>
    </div>
    <!-- 西南 -->
    <div class="face-container">
      <h3>西南</h3>
      <div class="1-face" style="justify-content: flex-end;">
        <span class="pip"></span>
      </div>
    </div>

    <!-- 正东 -->
    <div class="face-container">
      <h3>正东</h3>
      <div class="1-face" style="align-items: center;">
        <span class="pip"></span>
      </div>
    </div>
    <!-- 中宫 -->
    <div class="face-container">
      <h3>中宫</h3>
      <div class="1-face" style="justify-content: center; align-items: center;">
        <span class="pip"></span>
      </div>
    </div>
    <!-- 正西 -->
    <div class="face-container">
      <h3>正西</h3>
      <div class="1-face" style="justify-content: flex-end; align-items: center;">
        <span class="pip"></span>
      </div>
    </div>

    <!-- 东北 -->
    <div class="face-container">
      <h3>东北</h3>
      <div class="1-face" style="align-items: flex-end;">
        <span class="pip"></span>
      </div>
    </div>
    <!-- 正北 -->
    <div class="face-container">
      <h3>正北</h3>
      <div class="1-face" style="justify-content: center; align-items: flex-end;">
        <span class="pip"></span>
      </div>
    </div>
    <!-- 西北 -->
    <div class="face-container">
      <h3>西北</h3>
      <div class="1-face" style="justify-content: flex-end; align-items: flex-end;">
        <span class="pip"></span>
      </div>
    </div>
  </div>

  <hr>
  <h1>2点的布局示例</h1>
  <div>
    <div style="width: 100%; display: flex; justify-content: space-evenly; flex-wrap: wrap;">
      <div class="face-container">
        <div class="2-face">
          <span class="pip"></span>
          <span class="pip"></span>
        </div>
      </div>
      <div class="face-container">
        <div class="2-face" style="justify-content: center;">
          <span class="pip"></span>
          <span class="pip"></span>
        </div>
      </div>
      <div class="face-container">
        <div class="2-face" style="justify-content: flex-end;">
          <span class="pip"></span>
          <span class="pip"></span>
        </div>
      </div>
      <div class="face-container">
        <div class="2-face" style="justify-content: space-between;">
          <span class="pip"></span>
          <span class="pip"></span>
        </div>
      </div>
    </div>
  
    <div style="width: 100%; display: flex; justify-content: space-evenly; flex-wrap: wrap;">
      <div class="face-container">
        <div class="2-face" style="align-items: center;">
          <span class="pip"></span>
          <span class="pip"></span>
        </div>
      </div>
      <div class="face-container">
        <div class="2-face" style="justify-content: center; align-items: center;">
          <span class="pip"></span>
          <span class="pip"></span>
        </div>
      </div>
      <div class="face-container">
        <div class="2-face" style="justify-content: flex-end; align-items: center;">
          <span class="pip"></span>
          <span class="pip"></span>
        </div>
      </div>
      <div class="face-container">
        <div class="2-face" style="justify-content: space-between; align-items: center;">
          <span class="pip"></span>
          <span class="pip"></span>
        </div>
      </div>
    </div>
      
    <div style="width: 100%; display: flex; justify-content: space-evenly; flex-wrap: wrap;">
      <div class="face-container">
        <div class="2-face" style="align-items: flex-end;">
          <span class="pip"></span>
          <span class="pip"></span>
        </div>
      </div>
      <div class="face-container">
        <div class="2-face" style="justify-content: center; align-items: flex-end;">
          <span class="pip"></span>
          <span class="pip"></span>
        </div>
      </div>
      <div class="face-container">
        <div class="2-face" style="justify-content: flex-end; align-items: flex-end;">
          <span class="pip"></span>
          <span class="pip"></span>
        </div>
      </div>
      <div class="face-container">
        <div class="2-face" style="justify-content: space-between; align-items: flex-end;">
          <span class="pip"></span>
          <span class="pip"></span>
        </div>
      </div>
    </div>
  
    <div style="width: 100%; display: flex; justify-content: space-evenly; flex-wrap: wrap;">
      <div class="face-container">
        <div class="2-face" style="flex-direction: column;">
          <span class="pip"></span>
          <span class="pip"></span>
        </div>
      </div>
      <div class="face-container">
        <div class="2-face" style="flex-direction: column; justify-content: center;">
          <span class="pip"></span>
          <span class="pip"></span>
        </div>
      </div>
      <div class="face-container">
        <div class="2-face" style="flex-direction: column; justify-content: flex-end;">
          <span class="pip"></span>
          <span class="pip"></span>
        </div>
      </div>
      <div class="face-container">
        <div class="2-face" style="flex-direction: column; justify-content: space-between;">
          <span class="pip"></span>
          <span class="pip"></span>
        </div>
      </div>
    </div>
      
    <div style="width: 100%; display: flex; justify-content: space-evenly; flex-wrap: wrap;">
      <div class="face-container">
        <div class="2-face" style="flex-direction: column; justify-content: flex-start; align-items: center;">
          <span class="pip"></span>
          <span class="pip"></span>
        </div>
      </div>
      <div class="face-container">
        <div class="2-face" style="flex-direction: column; justify-content: center; align-items: center;">
          <span class="pip"></span>
          <span class="pip"></span>
        </div>
      </div>
      <div class="face-container">
        <div class="2-face" style="flex-direction: column; justify-content: flex-end; align-items: center;">
          <span class="pip"></span>
          <span class="pip"></span>
        </div>
      </div>
      <div class="face-container">
        <div class="2-face" style="flex-direction: column; justify-content: space-between; align-items: center;">
          <span class="pip"></span>
          <span class="pip"></span>
        </div>
      </div>
    </div>
      
    <div style="width: 100%; display: flex; justify-content: space-evenly; flex-wrap: wrap;">
      <div class="face-container">
        <div class="2-face" style="flex-direction: column; justify-content: flex-start; align-items: flex-end;">
          <span class="pip"></span>
          <span class="pip"></span>
        </div>
      </div>
      <div class="face-container">
        <div class="2-face" style="flex-direction: column; justify-content: center; align-items: flex-end;">
          <span class="pip"></span>
          <span class="pip"></span>
        </div>
      </div>
      <div class="face-container">
        <div class="2-face" style="flex-direction: column; justify-content: flex-end; align-items: flex-end;">
          <span class="pip"></span>
          <span class="pip"></span>
        </div>
      </div>
      <div class="face-container">
        <div class="2-face" style="flex-direction: column; justify-content: space-between; align-items: flex-end;">
          <span class="pip"></span>
          <span class="pip"></span>
        </div>
      </div>
    </div>
      
    <div style="width: 100%; display: flex; justify-content: space-evenly; flex-wrap: wrap;">
      <div class="face-container">
        <div class="2-face" style="flex-direction: column;">
          <div class="column">
            <span class="pip"></span>
          </div>
          <div class="column" style="display: flex; justify-content: center;">
            <span class="pip"></span>
          </div>
        </div>
      </div>
      <div class="face-container">
        <div class="2-face" style="flex-direction: row-reverse;">
          <div class="column" style="display: flex; align-items: flex-end;">
            <span class="pip"></span>
          </div>
          <div class="column" style="display: flex; align-items: center; justify-content: center;">
            <span class="pip"></span>
          </div>
        </div>
      </div>
      <div class="face-container">
        <div class="2-face" style="flex-direction: column-reverse;">
          <div class="column">
            <span class="pip"></span>
          </div>
          <div class="column" style="display: flex; justify-content: center;">
            <span class="pip"></span>
          </div>
        </div>
      </div>
      <div class="face-container">
        <div class="2-face" style="flex-direction: row-reverse;">
          <div class="column" style="display: flex;">
            <span class="pip"></span>
          </div>
          <div class="column" style="display: flex; align-items: center;">
            <span class="pip"></span>
          </div>
        </div>
      </div>
    </div>
  </div>

  <hr>
  <h1>3点的布局示例</h1>
  <div>
    <div style="width: 100%; display: flex; justify-content: space-evenly; flex-wrap: wrap;">
      <div class="face-container">
        <div class="3-face" style="justify-content: space-between;">
          <span class="pip"></span>
          <span class="pip"></span>
          <span class="pip"></span>
        </div>
      </div>
      <div class="face-container">
        <div class="3-face" style="justify-content: space-between; align-items: center;">
          <span class="pip"></span>
          <span class="pip"></span>
          <span class="pip"></span>
        </div>
      </div>
      <div class="face-container">
        <div class="3-face" style="justify-content: space-between; align-items: flex-end;">
          <span class="pip"></span>
          <span class="pip"></span>
          <span class="pip"></span>
        </div>
      </div>
      <div class="face-container">
        <div class="3-face" style="justify-content: space-between; align-items: flex-end;">
          <span class="pip" style="align-self: flex-start;"></span>
          <span class="pip" style="align-self: center;"></span>
          <span class="pip"></span>
        </div>
      </div>
      <div class="face-container">
        <div class="3-face" style="justify-content: space-between; align-items: flex-end;">
          <span class="pip"></span>
          <span class="pip" style="align-self: center;"></span>
          <span class="pip" style="align-self: flex-start;"></span>
        </div>
      </div>
    </div>
  </div>

  <hr>
  <h1>4点的布局示例</h1>
  <div>
    <div style="width: 100%; display: flex; justify-content: space-evenly; flex-wrap: wrap;">
      <div class="face-container">
        <div class="4-face" style="justify-content: space-between;">
          <div class="column" style="flex-direction: column;">
            <span class="pip"></span>
            <span class="pip"></span>
          </div>
          <div class="column" style="flex-direction: column;">
            <span class="pip"></span>
            <span class="pip"></span>
          </div>
        </div>
      </div>
      <div class="face-container">
        <div class="4-face" style="justify-content: space-between;">
          <div class="column" style="flex-direction: column; justify-content: center;">
            <span class="pip"></span>
            <span class="pip"></span>
          </div>
          <div class="column" style="flex-direction: column; justify-content: center;">
            <span class="pip"></span>
            <span class="pip"></span>
          </div>
        </div>
      </div>
      <div class="face-container">
        <div class="4-face" style="justify-content: space-between;">
          <div class="column" style="flex-direction: column; justify-content: flex-end;">
            <span class="pip"></span>
            <span class="pip"></span>
          </div>
          <div class="column" style="flex-direction: column; justify-content: flex-end;">
            <span class="pip"></span>
            <span class="pip"></span>
          </div>
        </div>
      </div>
      <div class="face-container">
        <div class="4-face" style="justify-content: space-between;">
          <div class="column" style="flex-direction: column;">
            <span class="pip"></span>
            <span class="pip"></span>
          </div>
          <div class="column" style="flex-direction: column; justify-content: flex-end;">
            <span class="pip"></span>
            <span class="pip"></span>
          </div>
        </div>
      </div>
      <div class="face-container">
        <div class="4-face" style="justify-content: space-between;">
          <div class="column" style="flex-direction: column; justify-content: flex-end;">
            <span class="pip"></span>
            <span class="pip"></span>
          </div>
          <div class="column" style="flex-direction: column; justify-content: flex-start;">
            <span class="pip"></span>
            <span class="pip"></span>
          </div>
        </div>
      </div>
      <div class="face-container">
        <div class="4-face" style="justify-content: space-between;">
          <div class="column" style="flex-direction: column; justify-content: space-between;">
            <span class="pip"></span>
            <span class="pip"></span>
          </div>
          <div class="column" style="flex-direction: column; justify-content: space-between;">
            <span class="pip"></span>
            <span class="pip"></span>
          </div>
        </div>
      </div>
    </div>
  </div>

  <hr>
  <h1>1 - 6点的正常布局</h1>
  <div style="display: flex; justify-content: space-evenly;">
    <!-- 1点 -->
    <div class="face-container">
      <h3>1点</h3>
      <div class="1-face" style="justify-content: center; align-items: center;">
        <span class="pip"></span>
      </div>
    </div>

    <!-- 2点 -->
    <div class="face-container">
      <h3>2点</h3>
      <div class="2-face" style="justify-content: space-between;">
        <span class="pip" style="align-self: flex-start;"></span>
        <span class="pip" style="align-self: flex-end;"></span>
      </div>
    </div>

    <!-- 3点 -->
    <div class="face-container">
      <h3>3点</h3>
      <div class="3-face" style="justify-content: space-between;">
        <span class="pip" style="align-self: flex-start;"></span>
        <span class="pip" style="align-self: center;"></span>
        <span class="pip" style="align-self: flex-end;"></span>
      </div>
    </div>

    <!-- 4点 -->
    <div class="face-container">
      <h3>4点</h3>
      <div class="4-face" style="justify-content: space-between;">
        <div class="column" style="display: flex; flex-direction: column; justify-content: space-between;">
          <span class="pip"></span>
          <span class="pip"></span>
        </div>
        <div class="column" style="display: flex; flex-direction: column; justify-content: space-between;">
          <span class="pip"></span>
          <span class="pip"></span>
        </div>
      </div>
    </div>

    <!-- 5点 -->
    <div class="face-container">
      <h3>5点</h3>
      <div class="5-face" style="justify-content: space-between;">
        <div class="column" style="display: flex; flex-direction: column; justify-content: space-between;">
          <span class="pip"></span>
          <span class="pip"></span>
        </div>
        <div class="column" style="display: flex;">
          <span class="pip" style="align-self: center;"></span>
        </div>
        <div class="column" style="display: flex; flex-direction: column; justify-content: space-between;">
          <span class="pip"></span>
          <span class="pip"></span>
        </div>
      </div>
    </div>

    <!-- 6点 -->
    <div class="face-container">
      <h3>6点</h3>
      <div class="5-face" style="justify-content: space-between;">
        <div class="column" style="display: flex; flex-direction: column; justify-content: space-between;">
          <span class="pip"></span>
          <span class="pip"></span>
          <span class="pip"></span>
        </div>
        <div class="column" style="display: flex; flex-direction: column; justify-content: space-between;">
          <span class="pip"></span>
          <span class="pip"></span>
          <span class="pip"></span>
        </div>
      </div>
    </div>
  </div>
</body>

</html>